﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>管理员管理<b class="tip"></b>管理员列表</div>
<!-- 搜索 -->
<div class="alert alert-info">
    <form method="GET" name="search_form">
		<p>
			账号：
	   		<input type="text" name="username" size="30" value="{$Think.get.username}" />
		</p>
		<p>
                    是否启用：<if condition="I('get.is_use', -1) == -1">
                           <input type="radio" value="-1" name="is_use" checked="checked" /> 全部 
                            <else/>
                           <input type="radio" value="-1" name="is_use"  /> 全部 
                            </if>
                              <if condition="I('get.is_use', -1) == 1">
                           <input type="radio" value="1" name="is_use" checked="checked" /> 启用 
                            <else/>
                           <input type="radio" value="1" name="is_use"  /> 启用 
                            </if>
                           <if condition="I('get.is_use', -1) == 0">
                           <input type="radio" value="0" name="is_use" checked="checked" /> 禁用 
                            <else/>
                           <input type="radio" value="0" name="is_use"  /> 禁用 
                            </if>
		</p>

    
    
    		&nbsp;<input type="submit" value=" 搜索 " class="btn" id="Button3" />&nbsp;<a class="btn" id="Button3" href="{:U('add')}">添加新角色</a>

</form>
</div>
    <table class="tb" id="top">
        <thead>
            <tr >
              <th >账号</th>
              <th >密码</th>
              <th >是否启用</th>
                <th width="60">操作</th>
            </tr>
        </thead>
        <tbody>

<volist name="data" id="v">   
			<tr >
				<td>{$v['username']}</td>
				<td>{$v['password']}</td>
				<td>{$v['is_use']==1? '启用':'禁用'}</td>
		        <td align="center">
		        <a class='btn' href="{:U('edit',array('id'=>$v['id'],'p'=>$p))}" title="编辑">编辑</a>
                        <if condition="$v['id']!=1">
	                <a class='btn' href="{:U('delete',array('id'=>$v['id'],'p'=>$p))}" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
                        </if>
		        </td>
	        </tr>   
	</volist>
		<if condition="(preg_match('/\d/', $page))">  
                <tr><td align="right" nowrap="true" colspan="99" height="30">{$page}</td></tr> 
                </if> 

        </tbody>

    </table>
</body>
</html>
